package com.health.trans;

import cn.hutool.extra.spring.EnableSpringUtil;
import com.health.entity.IndexInfo;
import com.health.es.annotation.EnableEsInit;
import com.health.es.entity.data.EsIndexInfo;
import com.health.trans.annotation.EnableBatch;
import com.health.trans.repository.IndexInfoRepository;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author nqlz
 */
@EnableSpringUtil
@EnableScheduling
@EnableBatch(entityPackageClasses = IndexInfo.class,repositoryPackageClasses = IndexInfoRepository.class)
@SpringBootApplication
@EnableEsInit(EsIndexInfo.class)
public class SyncWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(SyncWebApplication.class, args);
    }
}
